
Ext.onReady(function(){
	Ext.QuickTips.init();	
	var treePanel = new Ext.ux.sysmeta.TableTreePanel({id:'treePanel',url:'sysmeta/sys-meta-table!viewTree.action'});
	
	var westPanel = new Ext.Panel({
		id:'westPanel',
		title:'表结构信息',
		region:'west',
		width:300,
		collapsible: true,
		margins: '1 0 1 1',
		autoScroll:true,
		items:[treePanel]
	});
	
	var mainDetail = new Ext.TabPanel({
		id: 'mainDetail',
		region: 'center',
	    activeTab: 0,
	    autoDestroy: false,
        resizeTabs: true,
        tabWidth: 150,
        bodyStyle: 'padding:1px',
        margins: '1 1 1 0',
        listeners:{
			remove: function(tp, c) {
					c.hide();
			}
		},   
	   	items: [
	   		new Ext.ux.sysmeta.SysTableQueryPanel({id:'tableQueryPanel'})/*,
	   		
	   		new Ext.ux.sysmeta.SysColumnQueryPanel({id:'columnQueryPanel'})*/
	   	]      
	});
	
	var viewPort = new Ext.Viewport({
		layout:'border',
		items:[westPanel,mainDetail]
	});
	
});